package nz.co.listit.TaxiValet;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;

public class SmsActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstance) {
		super.onCreate(savedInstance);
		String number = getIntent().getStringExtra("number");
		Intent intent = new Intent(Intent.ACTION_VIEW, Uri.fromParts("sms", number, null));
		intent.putExtra("sms_body", "Your taxi has arrived!");
		
		this.startActivity(intent);
		this.finish();
	}

}
